{template /common/header}
<body class="bgWhite">
    <!-- S header -->
    <header>
        <a href="/index.php?m=user" class="headerL iconfont">&#xe66a;</a>
        <h1>新手解答</h1>
	</header>
	<!-- E header -->
	
	<ul class="noob_items">
		<?php foreach($list as $key=>$val){?>
		<li class="noob_item">
			<div class="noob_question">
				<div><?php echo $val['title']?></div>
				<i class="noob_icon"></i>
			</div>
			<div class="noob_answer"><?php echo $val['content']?></div>
		</li>
		<?php }?>
		
	</ul>


	<script>
		$(function(){
			$(".noob_item").on("click",function(){
				$(this).toggleClass("open").siblings("li").removeClass("open");
			});
		})
	</script>
</body>
</html>